package com.xlh.virtualization.domain;

import java.io.Serializable;
import java.util.Date;

public class Judge implements Serializable {

    public static final Integer STEP_TYPE = 2; // 步骤类型

    public static final Integer TASK_TYPE = 1; // 任务类型

    private Long id;

    private Integer type;

    /**
     * 步骤Id
     *
     * @mbg.generated
     */
    private Long contextId;

    /**
     * 脚本
     *
     * @mbg.generated
     */
    private String script;

    /**
     * 答案
     *
     * @mbg.generated
     */
    private String answer;

    private Boolean skipped;

    private Boolean deleted;

    private Date createTime;

    private Date updateTime;

    private static final long serialVersionUID = 1L;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Integer getType() {
        return type;
    }

    public Judge setType(Integer type) {
        this.type = type;
        return this;
    }

    public Long getContextId() {
        return contextId;
    }

    public Judge setContextId(Long contextId) {
        this.contextId = contextId;
        return this;
    }

    public String getScript() {
        return script;
    }

    public void setScript(String script) {
        this.script = script;
    }

    public String getAnswer() {
        return answer;
    }

    public void setAnswer(String answer) {
        this.answer = answer;
    }

    public Boolean getSkipped() {
        return skipped;
    }

    public void setSkipped(Boolean skipped) {
        this.skipped = skipped;
    }

    public Boolean getDeleted() {
        return deleted;
    }

    public void setDeleted(Boolean deleted) {
        this.deleted = deleted;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", type=").append(type);
        sb.append(", contextId=").append(contextId);
        sb.append(", script=").append(script);
        sb.append(", answer=").append(answer);
        sb.append(", skipped=").append(skipped);
        sb.append(", deleted=").append(deleted);
        sb.append(", createTime=").append(createTime);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}